<?php
namespace Admin\Widget;
use Think\Controller;

class PlanWidget extends Controller {

    /**
     * 在指定日期有统计数据的计划列表
     *
     * @return void
     */
    public function hasStatsPlan($day){
        $m      = D('PlanStats');
        $record = $m->where(['day' => $day])->select();

        $this->assign('record', $record)
             ->display('PlanWidget:hasStatsPlan');
    }

}
